<template>
	<view>
		登录{{userInfo}}
		<button type="primary" @click="login">微信授权</button>
	</view>
</template>

<script>
	import {ajaxFun} from "@/untils/ajax.js";
	import {mapState,mapActions} from "pinia";
	import {useUserStore} from "@/stores/user.js"
	export default {
		computed:{
			...mapState(useUserStore,["userInfo"])
		},
		methods:{
			...mapActions(useUserStore,["login"])
		}
	}
</script>

<style>

</style>
